package com.example.behaviour.handler;

import com.alibaba.fastjson.JSONObject;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.http.websocketx.TextWebSocketFrame;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class AckRequestMessageHandler extends SimpleChannelInboundHandler<TextWebSocketFrame> {

    @Override
    public void channelRead0(ChannelHandlerContext ctx, TextWebSocketFrame msg) throws Exception{
        log.info("执行到了AckRequestMessageHandler");
//        ctx.writeAndFlush(msg);
//        TextWebSocketFrame textWebSocketFrame = (TextWebSocketFrame) msg;
//        JSONObject jsonObject = JSONObject.parseObject(textWebSocketFrame.text());
    }


}
